
	<div class="content wrap-home">
		<div class="grid-7">
			<?php echo $this->element('sidebar'); ?>
		</div>

		<div class="grid-18">
		<?php if (!empty($front_page)): ?>
			<div class="module-box welcome-box">
				<h1><?php __('Bienvenidos a '); ?></h1>
				<?php echo $front_page; ?>
			</div>
		<?php endif; ?>
		
		<?php if (!empty($products)): ?>
			<div class="module-box products-box">
			<?php foreach($products AS $row): ?>
				<div class="product-box">
					<p class="product-title"><?php echo $html->link($row['ProductDescription']['name'], array('controller' => 'products', 'action' => 'details', $row['ProductDescription']['slug'])); ?></p>
					<?php $image = (!$row['Product']['preview']) ? false : $html->image($row['Product']['preview_compact']); ?>
					<p class="product-preview<?php echo (!$image ? ' preview-empty' : ''); ?>"><?php echo ($image ? $image : ''); ?></p>
					<p class="product-price"><?php echo $row['Currency']['code'] . $number->format($row['Product']['price'], array('before' => $row['Currency']['symbol_left'], 'after' => $row['Currency']['symbol_right'], 'places' => $row['Currency']['decimal_places'], 'decimals' => $row['Currency']['decimals'], 'thousands' => $row['Currency']['thousands'], 'escape' => false)); ?></p>
				</div>
				<div class="product-box">
					<p class="product-title"><?php echo $html->link($row['ProductDescription']['name'], array('controller' => 'products', 'action' => 'details', $row['ProductDescription']['slug'])); ?></p>
					<?php $image = (!$row['Product']['preview']) ? false : $html->image($row['Product']['preview_compact']); ?>
					<p class="product-preview<?php echo (!$image ? ' preview-empty' : ''); ?>"><?php echo ($image ? $image : ''); ?></p>
					<p class="product-price"><?php echo $row['Currency']['code'] . $number->format($row['Product']['price'], array('before' => $row['Currency']['symbol_left'], 'after' => $row['Currency']['symbol_right'], 'places' => $row['Currency']['decimal_places'], 'decimals' => $row['Currency']['decimals'], 'thousands' => $row['Currency']['thousands'], 'escape' => false)); ?></p>
				</div>
				<div class="product-box">
					<p class="product-title"><?php echo $html->link($row['ProductDescription']['name'], array('controller' => 'products', 'action' => 'details', $row['ProductDescription']['slug'])); ?></p>
					<?php $image = (!$row['Product']['preview']) ? false : $html->image($row['Product']['preview_compact']); ?>
					<p class="product-preview<?php echo (!$image ? ' preview-empty' : ''); ?>"><?php echo ($image ? $image : ''); ?></p>
					<p class="product-price"><?php echo $row['Currency']['code'] . $number->format($row['Product']['price'], array('before' => $row['Currency']['symbol_left'], 'after' => $row['Currency']['symbol_right'], 'places' => $row['Currency']['decimal_places'], 'decimals' => $row['Currency']['decimals'], 'thousands' => $row['Currency']['thousands'], 'escape' => false)); ?></p>
				</div>
				<div class="product-box">
					<p class="product-title"><?php echo $html->link($row['ProductDescription']['name'], array('controller' => 'products', 'action' => 'details', $row['ProductDescription']['slug'])); ?></p>
					<?php $image = (!$row['Product']['preview']) ? false : $html->image($row['Product']['preview_compact']); ?>
					<p class="product-preview<?php echo (!$image ? ' preview-empty' : ''); ?>"><?php echo ($image ? $image : ''); ?></p>
					<p class="product-price"><?php echo $row['Currency']['code'] . $number->format($row['Product']['price'], array('before' => $row['Currency']['symbol_left'], 'after' => $row['Currency']['symbol_right'], 'places' => $row['Currency']['decimal_places'], 'decimals' => $row['Currency']['decimals'], 'thousands' => $row['Currency']['thousands'], 'escape' => false)); ?></p>
				</div>
				<div class="product-box">
					<p class="product-title"><?php echo $html->link($row['ProductDescription']['name'], array('controller' => 'products', 'action' => 'details', $row['ProductDescription']['slug'])); ?></p>
					<?php $image = (!$row['Product']['preview']) ? false : $html->image($row['Product']['preview_compact']); ?>
					<p class="product-preview<?php echo (!$image ? ' preview-empty' : ''); ?>"><?php echo ($image ? $image : ''); ?></p>
					<p class="product-price"><?php echo $row['Currency']['code'] . $number->format($row['Product']['price'], array('before' => $row['Currency']['symbol_left'], 'after' => $row['Currency']['symbol_right'], 'places' => $row['Currency']['decimal_places'], 'decimals' => $row['Currency']['decimals'], 'thousands' => $row['Currency']['thousands'], 'escape' => false)); ?></p>
				</div>
				<div class="product-box">
					<p class="product-title"><?php echo $html->link($row['ProductDescription']['name'], array('controller' => 'products', 'action' => 'details', $row['ProductDescription']['slug'])); ?></p>
					<?php $image = (!$row['Product']['preview']) ? false : $html->image($row['Product']['preview_compact']); ?>
					<p class="product-preview<?php echo (!$image ? ' preview-empty' : ''); ?>"><?php echo ($image ? $image : ''); ?></p>
					<p class="product-price"><?php echo $row['Currency']['code'] . $number->format($row['Product']['price'], array('before' => $row['Currency']['symbol_left'], 'after' => $row['Currency']['symbol_right'], 'places' => $row['Currency']['decimal_places'], 'decimals' => $row['Currency']['decimals'], 'thousands' => $row['Currency']['thousands'], 'escape' => false)); ?></p>
				</div>
			<?php endforeach; ?>
			</div>
		<?php endif; ?>
		</div>
	</div>
